home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2000 July / macformat-092.iso / MacFormat 92 CD / Shareware Plus / Utilities / FolderSynchronizer 1.8.9 / PlugIn / SR / 00049_ScrBtnShort.ls < prev    next >
Encoding:
Text File  |  2000-03-23  |  618 b   |  26 lines

  1. on beginSprite me
  2.   global gShortFlag
  3.   set mySprite to the spriteNum of me
  4.   if gShortFlag = 1 then
  5.     set the member of sprite mySprite to "BtnDwShort"
  6.   else
  7.     set the member of sprite mySprite to "BtnUpShort"
  8.   end if
  9. end
  10.  
  11. on mouseDown me
  12.   global gShortFlag, gLogPathList
  13.   set mySprite to the spriteNum of me
  14.   if gShortFlag = 0 then
  15.     set gShortFlag to 1
  16.     set the member of sprite mySprite to "BtnDwShort"
  17.     if count(gLogPathList) > 0 then
  18.       set the member of sprite (mySprite + 1) to "BtnUpLong"
  19.     end if
  20.     updateStage()
  21.     ReadLogText()
  22.     ImpostaHThumb()
  23.     DrawVControls()
  24.   end if
  25. end
  26.